/**
 * 作者: wgx
 * 日期: 2024-12-03 10:10:55
 * 备注: 物资争夺中转站等级配置表
 */
package com.motu.monstercity.server.game.commondata.fight;

import io.vertx.core.json.JsonObject;

public class SnatchTransferModel {
    protected int id; // id
    protected int level; // 等级
    protected int maxTime; // 金币可存储时间上限(分钟)
    protected int addition; // 加成百分比数值
    protected long consume; // 升级需要消耗的道具(110002)数量

    public SnatchTransferModel() {
    }

    public SnatchTransferModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        level = obj.containsKey("level") ? obj.getInteger("level") : 0;
        maxTime = obj.containsKey("max_time") ? obj.getInteger("max_time") : 0;
        addition = obj.containsKey("addition") ? obj.getInteger("addition") : 0;
        consume = obj.containsKey("consume") ? obj.getLong("consume") : 0;
    }

    public int getId() {
        return id;
    }

    public int getLevel() {
        return level;
    }

    public int getMaxTime() {
        return maxTime;
    }

    public int getAddition() {
        return addition;
    }

    public long getConsume() {
        return consume;
    }

}
